#! /bin/sh /usr/share/dpatch/dpatch-run
## 06_unit_dbase.dpatch by  <Mazen Neifer <mazen.neifer@supaero.org>>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: This patch fixes a non deterministic register allocation for
## DP: sprac architecture.

@DPATCH@
Index: fpcsrc/compiler/sparc/cgcpu.pas
===================================================================
--- fpc-2.2.0~/fpcsrc/compiler/sparc/cgcpu.pas	(revision 9036)
+++ fpc-2.2.0/fpcsrc/compiler/sparc/cgcpu.pas	(revision 9037)
@@ -489,7 +489,7 @@
           end
         else
           begin
-            case fromsize of
+            case tosize of
               { signed integer registers }
               OS_8,
               OS_S8:
